<?php
namespace common\models;

use Yii;
use yii\db\ActiveRecord;

class Type extends ActiveRecord{
  public function fields() {
    return [
      'id'=>'type_id',
      'name'=>'name_id',
    ];
  }
}